import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {SharedModule} from '../shared/shared.module';
import {HomeComponent} from './home.component';
import {LeaveHomeGuard} from "../guards/leaveHome.guard";


const routes: Routes = [{
    path: '',
    component: HomeComponent,
    canDeactivate: [LeaveHomeGuard]

}];


@NgModule({
    imports: [
        SharedModule,
        RouterModule.forChild(routes)
    ],
    declarations: [
        HomeComponent
    ]
})


export class HomeModule {
}